<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习2</title>
</head>
<body>
    <form>
        姓名：<input type="text" required name="name" autofocus placeholder="请输入你的名字"><br>
        性别：<input type="radio" required name="gender">男
              <input type="radio" name="gender">女  <br>
        手机：<input type="text" name="tel" required placeholder="请输入你的手机号码">   <br>   
     身份证号：<input type="text" name="id" maxlength="18" required placeholder="请输入身份证号"> <br>      
   同行人姓名：<input type="text" required name="name1" placeholder="请输入同行人姓名">  <br>
     车辆牌号：<input type="text" name="car" required placeholder="请填写车牌号"><br>
     来访时间：<input type="datetime-local" name="time" ><br>  
     来访原因：<input type="radio" name="reason" required>公务
              <input type="radio" name="reason" >会友
              <input type="radio" name="reason" >游玩
              <input type="radio" name="reason" >考试
              <input type="radio" name="reason" >培训<br>
     其他说明：<br>
     <textarea name="reason1" id="" cols="30" rows="10"></textarea><br>
     <button>提交</button>
    </form>
</body>
</html>